﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace RiaToDalLinq.Attributes
{
    /// <summary>
    /// Maps a field on a RIA entity to a field on a DAL entity
    /// </summary>
    [System.AttributeUsage(System.AttributeTargets.Property | AttributeTargets.Field)]
    public class FieldMap : Attribute
    {
        private string _fieldName = string.Empty;

        public FieldMap(string fieldName)
        {
            _fieldName = fieldName;
        }

        public string FieldName
        {
            get
            {
                return _fieldName;
            }
        }
    }
}
